package com.bw.zhuangao5___day002.Fragment;


import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.os.Build;
import android.view.View;

import androidx.annotation.RequiresApi;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentStatePagerAdapter;
import androidx.viewpager.widget.ViewPager;

import com.bw.mvp.V.BannerFragment;
import com.bw.zhuangao5___day002.Adpter.FragmentAdpter.FragmentAdpterTwo;
import com.bw.zhuangao5___day002.Fragment.Movies.BlankFragmentMoviesGouWuChe;
import com.bw.zhuangao5___day002.Fragment.Movies.BlankFragmentMoviesOne;
import com.bw.zhuangao5___day002.R;

import java.util.ArrayList;
import java.util.List;

import q.rorbin.verticaltablayout.VerticalTabLayout;


public class BlankFragmentMovies extends BannerFragment {


    private VerticalTabLayout tablayout;
    private ViewPager viewpager;
    private View viewdong;

    @Override
    public int bandLayoud() {
        return R.layout.fragment_blank_fragment_movies;
    }

    @Override
    public void initView() {

        tablayout = (VerticalTabLayout) findViewById(R.id.tablayout);
        viewpager = (ViewPager) findViewById(R.id.viewpager);
        viewdong = findViewById(R.id.viewdong);
    }

    @Override
    public void initDate() {

        List<Fragment> fragmentList = new ArrayList<>();
        fragmentList.add(new BlankFragmentMoviesGouWuChe());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());
        fragmentList.add(new BlankFragmentMoviesOne());

        List<String> datas = new ArrayList<>();
        datas.add("我的购物车");
        datas.add("文德店铺");
        datas.add("沙道店铺");
        datas.add("诸侯店铺");
        datas.add("台北店铺");
        datas.add("慈顺店铺");
        datas.add("河流店铺");
        datas.add("洪德店铺");
        datas.add("沟南店铺");
        datas.add("牛堡内店铺");
        datas.add("流德店铺");
        datas.add("杜村店铺");
        datas.add("王快水库");
        datas.add("大沙河库");
        datas.add("文德幼儿园");
        datas.add("文德小学");
        datas.add("文德中学");
        datas.add("垂钓俱乐部");

        FragmentAdpterTwo fragmentAdpterTwo = new FragmentAdpterTwo(getActivity().getSupportFragmentManager(), FragmentStatePagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT, fragmentList, datas);
        viewpager.setAdapter(fragmentAdpterTwo);
        tablayout.setupWithViewPager(viewpager);


    }
}
